<!--what is _zbox-->
<div class="_zbox">
        	<ul>
        <div class="list_movie" id="list_chieurap">
<!--        what is ipos_film-->
	<?php 
	
		//var_dump(ipos_film("phim-new",61));die();
			
	
	?>
<!--         ipos_film("phim-new",61);-->
            </ul>
        </div>
</div><script type="text/javascript">$("#list_chieurap").carousel( { pagination: true,dispItems: 4,autoSlide:true,delayAutoSlide:10000 } );</script>
<div class="clr"></div>
<div class="block-main">
<!--comprehensive -->
<div class="randphim">
<div class="randphimbox">
<h2 class="cufont">CÃ“ THá»‚ Báº N MUá»�N XEM</h2>
<ul>
<?php
$filmlist	=	$db->database("phimid,tenphim,tentienganh,phimimg,thoiluong,chatluong","film","phimid != 0 ORDER BY RAND() LIMIT 10");

for($i=0;$i<count($filmlist);$i++) {
	$url_hdnew	=	url_link($filmlist[$i][1].'-'.$filmlist[$i][2],$filmlist[$i][0],'phim');
	?>
	<li>
	<a href="<?=$url_hdnew?>"><img src="<?=$filmlist[$i][3]?>" alt="<?=$filmlist[$i][1]?>">
	<h3><?=printstr($filmlist[$i][1],2)?></h3>
	<p><?=printstr($filmlist[$i][2],2)?></p>
	</a>
	</li>
<? } ?>
</ul>
</div>
<div class="phimbobox">
<h2 class="cufont">PHIM Bá»˜ Ä�ANG Cáº¬P NHáº¬T</h2>
<ul>
<?php
$_filmlist	=	$db->database("phimid,tenphim,tentienganh,phimimg,thoiluong,chatluong","film","phimbo = 2 ORDER BY phimid DESC LIMIT 18");
for($i=0;$i<count($_filmlist);$i++) {
	$_url_hdnew	=	url_link($_filmlist[$i][1].'-'.$_filmlist[$i][2],$_filmlist[$i][0],'phim');
	?>
	<li>
	<a href="<?=$_url_hdnew?>"><?=printstr($_filmlist[$i][1],5)?> <span>(<?=$_filmlist[$i][4]?>)</span></a>
	</li>
<? } ?>
</ul>
</div>
</div>
<div class="clr"></div>
<div class="list-movie">
    	<h2 class="cufont">PHIM Láºº Má»šI Cáº¬P NHáº¬T </h2><span class="mode-view"><a href="<?=MAIN_URL?>/danh-sach/phim-le.html">Xem thÃªm</a></span>
        <div class="list_movie">
        	<ul>
         <?=ipos_film("phim-le-new",20);?>
            </ul>
        </div>
</div>
<div class="clr"></div>
<div class="list-movie">
    	<h2 class="cufont">PHIM Bá»˜ Má»šI Cáº¬P NHáº¬T </h2><span class="mode-view"><a href="<?=MAIN_URL?>/danh-sach/phim-bo.html">Xem thÃªm</a></span>
        <div class="list_movie">
        	<ul>
           <?=ipos_film("phim-bo-new",20);?>
            </ul>
        </div>
</div>
<div class="clr"></div>
</div>